<?php
/**
 * aheadWorks Co.
 *
 * NOTICE OF LICENSE
 *
 * This source file is subject to the EULA
 * that is bundled with this package in the file LICENSE.txt.
 * It is also available through the world-wide-web at this URL:
 * http://ecommerce.aheadworks.com/AW-LICENSE-COMMUNITY.txt
 * 
 * =================================================================
 *                 MAGENTO EDITION USAGE NOTICE
 * =================================================================
 * This package designed for Magento COMMUNITY edition
 * aheadWorks does not guarantee correct work of this extension
 * on any other Magento edition except Magento COMMUNITY edition.
 * aheadWorks does not provide extension support in case of
 * incorrect edition usage.
 * =================================================================
 *
 * @category   AW
 * @package    AW_Imagetest
 * @copyright  Copyright (c) 2010-2011 aheadWorks Co. (http://www.aheadworks.com)
 * @license    http://ecommerce.aheadworks.com/AW-LICENSE-COMMUNITY.txt
 */
/**
 * Youtube Upload Form Class
 */
class AW_Imagetest_Block_Show_Form_Render_Youtube extends AW_Imagetest_Block_Show_Form_Render_Abstract
{
    /**
     * Path to player render template
     */
    const YOUTUBE_FORM_TEMPLATE = "aw_imagetest/show/form/render/youtube.phtml";

    protected $_apiKey = 'youtube';

    /**
     * Class constructor
     */
    public function __construct()
    {
        parent::__construct();
        $this->setTemplate(self::YOUTUBE_FORM_TEMPLATE);
    }

    /**
     * Retrives Action Url
     * @return string
     */
    public function getActionUrl()
    {
        return $this->getUrl('imagetest/youtube/post');
    }

    public function getCopyright()
    {
        return Mage::getSingleton('imagetest/connector')->getApiModel('youtube')->getRenderedCopyright();
    }

}
